package com.ddwl.schema.vo.goods;

import com.ddwl.schema.vo.dist.GoodsProfitVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.Instant;
import java.util.List;

/**
 * @author Fu Zhaohui
 * @version 1.0.0
 * @date 2019/6/16 23:54
 */
@ApiModel("商品Vo")
@Setter
@Getter
public class ItemVo {
    @ApiModelProperty("ID")
    private String id;
    @ApiModelProperty("商户ID")
    private String mchId;
    @ApiModelProperty("店铺ID")
    private String shopId;
    @ApiModelProperty("店铺名称")
    private String shopName;
    @ApiModelProperty("商品名称")
    private String itemName;
    @ApiModelProperty("零售价")
    private BigDecimal retailPrice;
    @ApiModelProperty("原价/津贴价")
    private BigDecimal originPrice;
    @ApiModelProperty("商品描述")
    private String itemDesc;
    @ApiModelProperty("商品状态 0下架 1上架")
    private Integer itemStatus;
    @ApiModelProperty("商品图片")
    private List<ItemMediaVo> medias;
    @ApiModelProperty("主图url")
    private String itemImage;
    @ApiModelProperty("分类id")
    private String categoryId;
    @ApiModelProperty("分类名称")
    private String categoryName;
    @ApiModelProperty("推荐")
    private Boolean recommend;
    @ApiModelProperty("销量")
    private Integer sales;
    @ApiModelProperty("评分")
    private Float star;
    @ApiModelProperty("属性列表")
    private String attributeList;

    @ApiModelProperty("活动标识")
    private String activitySgin;
    @ApiModelProperty("商品分销分润信息")
    private GoodsProfitVo goodsProfitVo;
    @ApiModelProperty("商品条码")
    private String barcode;
    @ApiModelProperty("商品排序")
    private Integer itemSort;
    @ApiModelProperty("创建时间")
    private Instant gmtCreated;
    @ApiModelProperty("修改时间")
    private Instant gmtModified;
    @ApiModelProperty("虚拟销量")
    private Integer falseSales;
    @ApiModelProperty("商品预估佣金")
    private BigDecimal itemCommission;
    @ApiModelProperty("供应商id")
    private String supplierId;
    @ApiModelProperty("总销量")
    private Integer sumSales;
    @ApiModelProperty("商品属性")
    private String paramDetail;
    @ApiModelProperty("搜索关键字")
    private String keywords;
    @ApiModelProperty("商品标签")
    private String itemSgin;
    @ApiModelProperty("商品标签列表")
    private List<String> itemSgins;
    @ApiModelProperty("规格类型 0：单规格，1：多规格")
    private Integer skuType;
    @ApiModelProperty("商品类型 0：五八马平台，1：新零售店铺")
    private Integer itemType;
    @ApiModelProperty("下架原因（公司运营后台下架时需要）")
    private String shelfReason;

    @ApiModelProperty("是否打折，0否 1是")
    private Integer discountFlag;

    @ApiModelProperty("是否限时购，0否 1是")
    private Integer limitTimeFlag;

    @ApiModelProperty("是否限购，0否 1是")
    private Integer limitFlag;

    @ApiModelProperty("限购数量")
    private Integer limitQuantity;
    @ApiModelProperty("是否可代理 0否 1是")
    private Integer agentFlag;

    @ApiModelProperty("小程序码")
    private String wxaCode;
    @ApiModelProperty("是否公益商品 0否 1是")
    private Integer charityFlag;
}
